{% load staticfiles%}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Form Test</title>
    <link rel="stylesheet" href="{% static "css/bootstrap.min.css" %}">
    <link rel="stylesheet" href="{% static "css/bootstrap-theme.min.css" %}">
    <script src="{% static "js/bootstrap.js" %}"></script>
</head>
<body>
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        这是auther1
                    </div>
                    <div class="panel-body">
                        
                        <table class="table table-hover table-striped">
                            <thead>
                                <tr><th>id</th><th>name</th></tr>
                            </thead>
                            <tbody>
                            {% for term in objs %}
                                <tr><td>{{term.id}}</td><td>{{term.name}}</td></tr>
                            {% endfor %}
                            
                            </tbody>
                        </table>
                        <ul class="pagination">
                            {% if prevous_page != 0 %}
                                <li><a href="/myblog/terms/list/{{prevous_page}}">&laquo;上一页</a></li>
                            {% else%}
                                <li><a class="disabled" href="/myblog/terms/list/{{prevous_page}}">&laquo;上一页</a></li>
                            {% endif %}
                            {% for page_num in page_range %}
                                {% if current_page == page_num %}
                                <li  class="active">
                                    <a href="/myblog/terms/list/{{page_num}}">{{page_num}}</a>
                                </li>
                                {% else %}
                                <li>
                                    <a href="/myblog/terms/list/{{page_num}}">{{page_num}}</a>
                                </li>
                                {% endif %}
                            {% endfor %}
                            {% if next_page != 0 %}
                                <li><a href="/myblog/terms/list/{{next_page}}">下一页&raquo;</a></li>
                            {% else%}
                                <li><a class="disabled" href="/myblog/terms/list/{{next_page}}">下一页&raquo;</a></li>
                            {% endif %}
                        </ul>
                    </div>
                    <div class="panel-footer">
                        
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>